import request from '../../utils/request'

// 查询跟进信息列表
export function getFollowList(params) {
    return request({
        url: '/system/follow/list',
        method: 'GET',
        params
    })
}

// 新增跟进信息
export function addFollow(data) {
    return request({
        url: '/system/follow',
        method: 'POST',
        data
    })
}

// 上传图片文件
export function uploadImage(data) {
    return request({
        url: '/upload/audio',
        method: 'POST',
        data,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}

// 修改跟进信息
export function updateFollow(data) {
    return request({
        url: '/system/follow',
        method: 'PUT',
        data
    })
}

// 删除跟进信息
export function deleteFollow(ids) {
    return request({
        url: `/system/follow/${ids.join(',')}`,
        method: 'DELETE'
    })
}
